<div class="box-content">
    <?php 
        $attributes = array('class' => 'email', 'id' => 'checknew');
        echo form_open($_module_name.'/fction/dels/'.$module_id, $attributes);
    ?>    
    <input type="hidden" name="page" value="<?php echo $page; ?>">
    <table class="admindata">
        <thead>
            <tr>
                <th colspan="6">
                    <? if($this->acl->check('dels')){ ?>
                        <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?php echo lang('admin.deletes'); ?>">
                    <? } ?>
                    <?php echo lang('admin.total');?> <?php echo $num; ?> <?php echo lang('admin.records');?>
                    <div class="fr">
                        <a href="<?=site_url($_module_name.'/fction/add')?>"><?php echo lang('admin.add_new');?></a>
                    </div>
                </th>
            </tr>
            <tr>
                <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
                <th><?php echo lang('function.id');?></th>
                <th><?php echo lang('function.code');?></th>
                <th><?php echo lang('function.name');?></th>
                <th><?php echo lang('function.comment');?></th>
                <th class="publish"><?php echo lang('admin.functions'); ?></th>

            </tr>                
        </thead>
        <?
        $k=1;
        foreach($list as $rs):?>
        <tr class="row<?=$k?>">
            <td><input type="checkbox" name="ar_id[]" value="<?=$rs->function_id?>"></td>
            <td><?=$rs->function_id;?></td>
            <td><?=$rs->function_code?></td>
            <td><?=$rs->function_name?></td>
            <td><?=$rs->function_comment?></td>
            <td align="center">
                <?=($this->acl->check('edit'))?icon_edit($_module_name.'/fction/edit/'.$module_id.'/'.$rs->function_id):'';?>
                <?=($this->acl->check('del'))?icon_del($_module_name.'/fction/del/'.$module_id.'/'.$rs->function_id):'';?>
            </td>
        </tr>
        <?
        $k=1-$k;
        endforeach;?>
        <tfoot>
            <td colspan="6">
                <? if($this->acl->check('dels')){ ?>
                <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="<?php echo lang('admin.deletes'); ?>">
                <? } ?>
                <?php echo lang('admin.total');?> <?=$num?> <?php echo lang('admin.records');?>
            </td>
        </tfoot>
    </table>  
    <?=form_close()?>  
</div>